import Vue from 'vue'
import App from './App.vue'
import iView from 'iview';
import 'iview/dist/styles/iview.css';
import VueRouter from 'vue-router';
import {routes} from './routes';
import VueAxios from 'vue-axios';
import axios from 'axios';

Vue.use(iView);
Vue.use(VueRouter);
Vue.use(VueAxios,axios);

const router = new VueRouter({
  routes:routes,
  mode:"history",
});

new Vue({
  el: '#app',
  router,
  render: h => h(App)
})
